package club.gskj.gulimall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName ThreadPoolConfigProperties
 * @Description TODO
 * @Author 康纳
 * @Date 2021-03-14
 */

/***
 *  线程池自定义属性配置文件
 */
@Data
@Component
@ConfigurationProperties(prefix = "gulimall.thread")
public class ThreadPoolConfigProperties {
    /**
     * 核心线程数
     */
    private Integer coreSize;
    /***
     *  最大线程数
     */
    private Integer maxSize;

    /***
     *  线程活跃时间
     */
    private Integer keepAliveTime;

}
